//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-02B
TN_Widget.CreateTable([['Erik Larson','Performance Hall At Gaillard Center','Charleston, SC','Thursday','5/16/2024','7:30 PM','6364401','Erik-Larson-5-16-2024'],['Idina Menzel','Performance Hall At Gaillard Center','Charleston, SC','Saturday','8/3/2024','7:30 PM','6407094','Idina-Menzel-8-3-2024'],['Giggly Squad Podcast','Performance Hall At Gaillard Center','Charleston, SC','Saturday','9/7/2024','7:00 PM','6403805','Giggly-Squad-Podcast-9-7-2024'],['Fight Night - Theatrical Production','Performance Hall At Gaillard Center','Charleston, SC','Thursday','9/12/2024','7:30 PM','6342965','Fight-Night---Theatrical-Production-9-12-2024'],['Fight Night - Theatrical Production','Performance Hall At Gaillard Center','Charleston, SC','Friday','9/13/2024','7:30 PM','6342966','Fight-Night---Theatrical-Production-9-13-2024'],['Alan Cumming','Performance Hall At Gaillard Center','Charleston, SC','Saturday','9/14/2024','7:30 PM','6343008','Alan-Cumming-9-14-2024'],['Dusty Slay','Performance Hall At Gaillard Center','Charleston, SC','Saturday','10/5/2024','7:00 PM','6399782','Dusty-Slay-10-5-2024'],['Martha Redbone','Performance Hall At Gaillard Center','Charleston, SC','Wednesday','10/23/2024','8:00 PM','6343009','Martha-Redbone-10-23-2024'],['Silkroad Ensemble & Rhiannon Giddens','Performance Hall At Gaillard Center','Charleston, SC','Tuesday','11/19/2024','7:30 PM','6343010','Silkroad-Ensemble---Rhiannon-Giddens-11-19-2024'],['Mike Birbiglia','Performance Hall At Gaillard Center','Charleston, SC','Friday','12/13/2024','7:00 PM','6340332','Mike-Birbiglia-12-13-2024'],['Sutton Foster','Performance Hall At Gaillard Center','Charleston, SC','Sunday','12/15/2024','7:00 PM','5724460','Sutton-Foster-12-15-2024'],['Live From Laurel Canyon','Performance Hall At Gaillard Center','Charleston, SC','Saturday','4/21/2074','7:00 PM','5724481','Live-From-Laurel-Canyon-4-21-2074']],'Gaillard Auditorium','http://www.ticketnetwork.com/ticket/Gaillard-Auditorium-events.aspx');